package club.haomoon.core.entity.system;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;

import lombok.Data;

import java.io.Serializable;

@Data
@Schema(title = "系统菜单实体")
public class SystemMenuData implements Serializable {

    @TableId(value="id", type= IdType.AUTO)
   @Schema(title = "ID")
    private Integer id;

   @Schema(title = "上级菜单")
    private Integer pid;

   @Schema(title = "权限类型: [M=目录, C=菜单, A=按钮]")
    private String type;

   @Schema(title = "菜单名称")
    private String name;

   @Schema(title = "菜单图标")
    private String icon;

   @Schema(title = "菜单排序")
    private Integer sort;

   @Schema(title = "权限标识")
    private String perms;

   @Schema(title = "路由地址")
    private String paths;

   @Schema(title = "前端组件")
    private String component;

   @Schema(title = "选中路径")
    private String selected;

   @Schema(title = "路由参数")
    private String params;

   @Schema(title = "是否缓存: [0=否, 1=是]")
    private Integer isCache;

   @Schema(title = "是否显示: [0=否, 1=是]")
    private Integer isShow;

   @Schema(title = "是否禁用: [0=否, 1=是]")
    private Integer isDisable;

   @Schema(title = "创建时间")
    private Long createTime;

   @Schema(title = "更新时间")
    private Long updateTime;
}
